
import { Request } from "./request";

// 启动页与图片轮播数据

module.exports.Banner = () => Request({
  url: "/banner/list",
  method: "get"
})


module.exports.category= () => Request({
  url: "/shop/goods/category/all",
  method: "get"
})

module.exports.goodsList= (data) => Request({
  url: "/shop/goods/list/v2",
  method: "post",
  
    data
  
})


module.exports.goodscontent= (id) => Request({
  url: `/shop/goods/detail?id=`+id,
  method: "get"
})


module.exports.goodspj= (id) => Request({
  url: `/shop/goods/reputation/v2?goodsId=`+id,
  method: "post"
})



module.exports.getgoodscity= (data) => Request({
  url: '/shopping-cart/info',
  method: "get",
  data
})

module.exports.editgoodscartNum= (data) => Request({
  url: '/shopping-cart/modifyNumber',
  method: "post",
  data
})

module.exports.removeCart= (data) => Request({
  url: '/shopping-cart/remove',
  method: "post",
  data
})

module.exports.editCartstatus= (data) => Request({
  url: '/shopping-cart/select',
  method: "post",
  data
})

module.exports.addCart= (data) => Request({
  url: '/shopping-cart/add',
  method: "post",
  data
})


module.exports.isLike= (data) => Request({
  url: '/shop/goods/fav/check',
  method: "get",
  data
})


module.exports.addLike= (data) => Request({
  url: '/shop/goods/fav/add',
  method: "post",
  data
})

module.exports.delLike= (data) => Request({
  url: '/shop/goods/fav/delete',
  method: "post",
  data
})